package com.xiezc.controller;

import com.xiezc.feign.DcClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DcController {
    @Autowired
    DcClient dcClient;

    @Value("${spring.url}")
   private String ok ;

    @GetMapping("/consumer")
    public String dc() {
        return dcClient.consumer()+ok;
    }

}